package org.jeecg.modules.demo.weixin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 次卡表
 * @Author: jeecg-boot
 * @Date:   2023-10-28
 * @Version: V1.0
 */
@Data
@TableName("smt_once_card_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="smt_once_card_info对象", description="smt_once_card_info")
public class SmtOnceCardInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**次卡id*/
	@Excel(name = "次卡id", width = 15)
    @ApiModelProperty(value = "次卡id")
    @TableId(type = IdType.AUTO)
    private Integer cardId;
	/**用户id*/
	@Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private Integer userId;
	/**设备号*/
	@Excel(name = "设备号", width = 15)
    @ApiModelProperty(value = "设备号")
    private String devCode;
	/**设备名称*/
	@Excel(name = "设备名称", width = 15)
    @ApiModelProperty(value = "设备名称")
    private String devName;
	/**次卡名称*/
	@Excel(name = "次卡名称", width = 15)
    @ApiModelProperty(value = "次卡名称")
    private String cardName;
	/**次卡使用次数*/
	@Excel(name = "次卡使用次数", width = 15)
    @ApiModelProperty(value = "次卡使用次数")
    private Integer cardUse;
	/**次卡销售金额*/
	@Excel(name = "次卡销售金额", width = 15)
    @ApiModelProperty(value = "次卡销售金额")
    private BigDecimal cardPrice;
	/**原价*/
	@Excel(name = "原价", width = 15)
    @ApiModelProperty(value = "原价")
    private BigDecimal cardOriginalPrice;
	/**次卡有效期*/
	@Excel(name = "次卡有效期", width = 15)
    @ApiModelProperty(value = "次卡有效期")
    private String cardValidDate;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**次卡状态*/
    @Excel(name = "次卡状态", width = 15)
    @ApiModelProperty(value = "次卡状态")
    private Integer status;

    /**是否删除*/
    @Excel(name = "是否删除", width = 15)
    @ApiModelProperty(value = "是否删除")
    private Integer isDel;

    /**日次数*/
    @Excel(name = "日次数", width = 15)
    @ApiModelProperty(value = "日次数")
    private Integer todayCard;

    /**商品id*/
    @Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
    private String goodsId;

    /**商品name*/
    @TableField(exist = false)
    private String goodsName;
}
